<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #d1{
            border: 1px solid red;
            width: 100%;
            height: 300px;
            /*内部所有的元素进入弹性布局，可以使用宽高属性*/
            display: flex;
            /* 设置主轴，默认是x方向 */
            flex-direction: row;
            /* 设置主轴上内容的排列 */
            /* justify-content: center; */
            /* justify-content: flex-end; */
            /* justify-content: flex-start; */
            justify-content: space-between;
            /* 设置侧轴的排列 */
            /* align-items: center; */
            /* align-items: start; */
            /* align-items: end; */
            /* 内容换行 */
            flex-wrap: wrap;
            align-content:space-between ;
        }
        #d1>span{
            width: 150px;
            height: 60px;
            background-color: orange;
            text-align: center;
            line-height: 60px;
        }
    </style>
</head>
<body>
    <div id="d1">
        <span>导航内容</span>
        <span>导航内容</span>
        <span>导航内容</span>
        <span>导航内容</span>
        <span>导航内容</span>
        <span>导航内容</span>
        <span>导航内容</span>
        <span>导航内容</span>
        <span>导航内容</span>
        <span>导航内容</span>
        <span>导航内容</span>
        <span>导航内容</span>
        <span>导航内容</span>
        <span>导航内容</span>
        <span>导航内容</span>
    </div>
</body>
</html>